﻿
using Janus.Windows.Ribbon;
using CommandType = System.Data.CommandType;

namespace YiLe.UI
{
    namespace YiLeSystemDataTableAdapters
    {


        public partial class EmployeeTableAdapter
        {

        }
        public partial class Xs_OrderTableAdapter
        {
            public System.Data.OleDb.OleDbDataAdapter DataAdapter
            {
                get
                {
                    //TODO:this.Adapter
                    //return this.Adapter;
                    return null;
                }
            }

            public virtual int Fill(string customerID, YiLeSystemData.Xs_OrderDataTable dataTable)
            {
                //TODO:this.connection
                /*System.Data.OleDb.OleDbCommand selectCommand = new System.Data.OleDb.OleDbCommand();
                selectCommand.Connection = this.Connection;
                string whereClause = null;
                if (!string.IsNullOrEmpty(customerID))
                {
                    whereClause = " WHERE CustomerID = '" + customerID + "'";
                }
                else
                {
                    whereClause = "";
                }
                selectCommand.CommandText = "SELECT OrderID, OrderDate, CustomerID, Employee, ShipVia, Paid, Customer, EmployeeID " + "FROM OrdersExtended" + whereClause;
                selectCommand.CommandType = CommandType.Text;*/
                //TODO:this.Adapter
                /*this.Adapter.SelectCommand = selectCommand;
                if (this.ClearBeforeFill == true)
                {
                    dataTable.Clear();
                }
                int returnValue = this.Adapter.Fill(dataTable);
                return returnValue;*/
                return 0;
            }
        }
        public partial class Xs_OrderDetailTableAdapter
        {
        }
    }

    public partial class YiLeSystemData
    {

    }
}








